<div class="judul_content">Ubah Data Anime</div>
            
<?php
	$id=$_GET['id'];
	$sttmt = $koneksi->query("select * from orders where id_orders = '$id'");
	$hasil = $sttmt->fetch(PDO::FETCH_ASSOC);
?>
<form class="form" name="form_tambah" method="post" action="utama.php?module=mod_order&act=update">
     <ul>
        <li>
            <label>ID Order</label>
            <input type="text" name="kode" id="kode" class="form" maxlength="40" value="<?php echo $hasil['id_orders']; ?>" disabled>
			<input type="hidden" name="id" id="id" value="<?php echo $hasil['id_orders']; ?>">
        </li>
        <li>
            <label>Nama Konsumen</label>
            <input type="text" name="nama" id="nama" class="form" size="50" maxlength="50" value="<?php echo $hasil['nama_konsumen']; ?>" disabled>
        </li>
        <li>
            <label>Alamat</label>
            <input type="text" name="alamat" id="alamat" class="form" size="50" maxlength="50" value="<?php echo $hasil['alamat']; ?>" disabled>
        </li>
        <li>
            <label>Kota</label>
            <input type="text" name="kota" id="kota" class="form" size="50" maxlength="50" value="<?php echo $hasil['kota']; ?>" disabled>
        </li>
        <li>
            <label>Email</label>
            <input type="text" name="email" id="email" class="form" size="50" maxlength="50" value="<?php echo $hasil['email']; ?>" disabled>
        </li>
        <li>
            <label>No. Telp</label>
            <input type="text" name="telp" id="telp" class="form" size="50" maxlength="50" value="<?php echo $hasil['no_telp']; ?>" disabled>
        </li>
        <li>
            <label>Keterangan</label>
            <textarea name="keterangan" id="keterangan" class="form" cols="37" disabled><?php echo $hasil['keterangan']; ?></textarea>
        </li>
        <li>
            <label>No. Resi</label>
            <input type="text" name="resi" id="resi" class="form" size="50" maxlength="50" value="<?php echo $hasil['resi']; ?>">
        </li>
        <li>
            <label>Status</label>
           	<select name="status" class="form">
           		<?php
           			$status = $koneksi->query("select * from status");
					while($st = $status->fetch(PDO::FETCH_ASSOC)){
						if($st['id_status'] == $hasil['id_status']){
							$sl = "selected";
						}else{
							$sl = "";
						}
						echo "<option value='$st[id_status]' $sl>$st[status]</option>";
					}
           		?>
           	</select>
        </li>
		<li>
			<label>&nbsp;</label>
            <input type="reset" name="reset" value="Reset" class="reset">
			<input type="submit" name="submit" value="Ubah" class="tambah">
		</li>
	</ul>
</form>       